﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Lib.Tools.IO
{
    public class PathHelper
    {
        /// <summary>
        /// 确保文件已经存在
        /// </summary>
        /// <param name="directoryPath"></param>
        public static void EnsureDirectoryExist(string directoryPath)
        {
            if (!Directory.Exists(directoryPath))
            {
                Directory.CreateDirectory(directoryPath);
            }
        }
    }
}
